package 蓝桥杯;

import java.util.Arrays;
import java.util.Scanner;

public class 经典排序 {
    public static void main(String[] args) {
        Scanner s1 = new Scanner(System.in);
        int n =s1.nextInt();
        int[] arr = new int[n];
        for(int i = 0; i < n; i++){
            arr[i] =s1.nextInt();
        }
        Arrays.sort(arr);
        for(int i = n-1; i >= 0; i--){
            if(i == 0){
                System.out.print(arr[i]);
            }else{
                System.out.print(arr[i]+" ");
            }
        }
    }
}
